﻿<Window x:Class="HistogramLr.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Initialized="Window_Initialized"
        Title="Histogram for Lightroom" Height="690" Width="440" Background="#FF282828" Icon="/HistogramLr;component/Application.ico"
		>
	<StackPanel>

		<!-- 制御 -->
		<StackPanel Orientation="Horizontal" Margin="8,4">
			<Label MouseDoubleClick="lblScale_MouseDoubleClick">
				<Image Source="/HistogramLr;component/Resources/Scale.png" Stretch="None" Width="24" Height="24" />
			</Label>
			<Slider Minimum="0.1" Maximum="10.0" Name="sliderScale" Width="100" ValueChanged="sliderScale_ValueChanged" Height="24" />
		</StackPanel>

		<!-- 情報 -->
		<StackPanel Orientation="Horizontal" Margin="8,4" Visibility="Collapsed">
			<Label Content="Filename:" Foreground="#FF999999" FontWeight="Bold"/>
			<Label Name="lblFilename" Content="" Foreground="#FFCCCCCC" />
		</StackPanel>

		<!-- Labo -->
		<!-- スポイトColor -->
		<StackPanel Orientation="Horizontal" Margin="8,0">
			<Border BorderThickness="1" BorderBrush="Black" SnapsToDevicePixels="True" Width="18" Height="18">
				<Rectangle Name="rectColor" Width="16" Height="16" Fill="DimGray" />
			</Border>
			<Label Content="R" Foreground="#FFCC9999" FontWeight="Bold" FontSize="11" Padding="8,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" FontFamily="Courier New" />
			<Label Name="lblLevelR" Content="0.0" Foreground="#FFFFFFFF" Width="40" FontSize="11" HorizontalContentAlignment="Right" Margin="0,0,8,0" Padding="2" VerticalContentAlignment="Center" FontFamily="Courier New" />
			<Label Content="G" Foreground="#FF99CC99" FontWeight="Bold" FontSize="11" Padding="4,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" FontFamily="Courier New" />
			<Label Name="lblLevelG" Content="0.0" Foreground="#FFFFFFFF" Width="40" FontSize="11" HorizontalContentAlignment="Right" Margin="0,0,8,0" Padding="2" VerticalContentAlignment="Center" FontFamily="Courier New" />
			<Label Content="B" Foreground="#FF9999F0" FontWeight="Bold" FontSize="11" Padding="4,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" FontFamily="Courier New" />
			<Label Name="lblLevelB" Content="0.0" Foreground="#FFFFFFFF" Width="40" FontSize="11" HorizontalContentAlignment="Right" Margin="0,0,0,0" Padding="2" VerticalContentAlignment="Center" FontFamily="Courier New" />
			<Label Content="%" Foreground="#FFCCCCCC" FontWeight="Bold" FontSize="11" Padding="4,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" FontFamily="Courier New" />

			<Label Name="lblLevelWebRGB" Content="#000000" Foreground="#FFCCCCCC" FontWeight="Bold" FontSize="12" Padding="32,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" FontFamily="Courier New" />
		</StackPanel>
		
		<!-- ヒストグラム表示 -->
		<StackPanel Orientation="Horizontal" Margin="8,4">
			<Image Name="imgThumbnail" Stretch="None" SnapsToDevicePixels="True" Width="128" Height="128" VerticalAlignment="Bottom" Margin="0,0,8,0" />
			<StackPanel Orientation="Vertical" Margin="8,0">
				<Image Name="imgHistogram" Stretch="None" SnapsToDevicePixels="True" Width="256" />
				<Image Name="imgColorLevel" Height="8" Width="256" SnapsToDevicePixels="True" />
			</StackPanel>
		</StackPanel>
		<StackPanel Orientation="Horizontal" Margin="8,4">
			<Image Name="imgThumbnailR" Stretch="None" SnapsToDevicePixels="True" Width="128" Height="128" VerticalAlignment="Bottom" Margin="0,0,8,0" />
			<StackPanel Orientation="Vertical" Margin="8,0">
				<Image Name="imgHistogramR" Stretch="None" SnapsToDevicePixels="True" Width="256" />
				<Image Name="imgColorLevelR" Height="8" Width="256" SnapsToDevicePixels="True" />
			</StackPanel>
		</StackPanel>
		<StackPanel Orientation="Horizontal" Margin="8,4">
			<Image Name="imgThumbnailG" Stretch="None" SnapsToDevicePixels="True" Width="128" Height="128" VerticalAlignment="Bottom" Margin="0,0,8,0" />
			<StackPanel Orientation="Vertical" Margin="8,0">
				<Image Name="imgHistogramG" Stretch="None" SnapsToDevicePixels="True" Width="256" />
				<Image Name="imgColorLevelG" Height="8" Width="256" SnapsToDevicePixels="True" />
			</StackPanel>
		</StackPanel>
		<StackPanel Orientation="Horizontal" Margin="8,4">
			<Image Name="imgThumbnailB" Stretch="None" SnapsToDevicePixels="True" Width="128" Height="128" VerticalAlignment="Bottom" Margin="0,0,8,0" />
			<StackPanel Orientation="Vertical" Margin="8,0">
				<Image Name="imgHistogramB" Stretch="None" SnapsToDevicePixels="True" Width="256" />
				<Image Name="imgColorLevelB" Height="8" Width="256" SnapsToDevicePixels="True" />
			</StackPanel>
		</StackPanel>

		<!-- Labo -->
		<Image Name="imgHist3D" Stretch="None" Visibility="Collapsed" />

	</StackPanel>
</Window>
